#ifndef LAYERITEM_H
#define LAYERITEM_H

#include <QPushButton>
#include "ui_LayerItem.h"
#include "Ptr.hpp"
#include "Layer.h"



using namespace OOPUtils;



class LayerItem : public QPushButton
{
	Q_OBJECT

public:
	LayerItem(QWidget *parent, Ptr< Layer > pLayer, int layerIndex);
	~LayerItem();

	int getIndex () const;

private:

	Ui::LayerItem ui;
	int _index;

signals:

	void select (int index);

public slots:

	void select ();

};

#endif // LAYERITEM_H
